package pojo;

public class QueryOrder {
    private String id;
    private String name;
    private String account;
    private int price;
    private String date;
    private String status;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getDate() {
        return date;
    }

    public void setDate(int year, int month, int day) {
        this.date = year + "年" + month + "月" + day + "日";
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status == 1 ? "已支付" : "待支付";
    }

    public QueryOrder(String id, String name, String account, int price, int year, int month, int day, int status) {
        this.id = id;
        this.name = name;
        this.account = account;
        this.price = price;
        this.date = year + "年" + month + "月" + day + "日";
        this.status = status == 1 ? "已支付" : "待支付";
    }

    public QueryOrder() {
    }
}
